package cn.chencaiju.dao;

import java.util.List;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import cn.chencaiju.domain.Product;

public interface ProductDao extends ElasticsearchRepository<Product, Integer>{
	List<Product> findByName(String name);
	List<Product> findByPriceBetween(Double p1,Double p2);

}
